package com.example.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
* <p>
* 物品归还记录表
* </p>
*
* @author wsl
* @since 2022-05-12
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("gs_restore_record")
@ApiModel(value = "GsRestoreRecord对象", description = "物品归还记录表")
public class GsRestoreRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("物品申请编号")
    private Integer gsPyId;

    @ApiModelProperty("物品编号")
    private String code;

    @ApiModelProperty("数量")
    private Integer num;

    @ApiModelProperty("归还物品人员的员工编号")
    private Integer empId;

    @ApiModelProperty("归还人员姓名")
    private String empName;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(exist = false)
    private Goods goods;
    @TableField(exist = false)
    private GsPy gsPy;

    @TableField(exist = false)
    private Emp emp;


}
